<?php
namespace modules\game\services\observer;

class PokerJoiner extends ISubject{
	public static $_pokerTime = 0;//第几波出牌
	public static $_isEnd = false;//出牌是否结束
	//注册观察者
	public function attach(IObserver $observer){
		$this->_observer[] = $observer;
	}
	//取消观察者
	public function detach(IObserver $observer){
		if($this->_observer){
			foreach($this->_observer as $key => $innerObserver){
				if($innerObserver === $observer){
					unset($this->_observer[$key]);
				}
			}
		}
	}
}